Skip to content

fix(selection): allow empty line selection - #310

Open
ilan-schemoul wants to merge 1 commit into
coder:mainfrom
ilan-schemoul:fix/selection-empty-line-selection
Open

fix(selection): allow empty line selection#310
ilan-schemoul wants to merge 1 commit into
coder:mainfrom
ilan-schemoul:fix/selection-empty-line-selection

Conversation

@ilan-schemoul

Copy link
Copy Markdown

Summary

  • Removes the sel_to_send.selection.isEmpty guard in send_at_mention_for_visual_selection so an empty-line selection can still be sent as an at-mention.

Motivation

A common use case is sending the reference of an empty line to Claude so it can implement something there. The previous guard rejected this (I don't know why) but it works fine without the check.

A common use case is to send the reference of an empty line to Claude
for it to implement.
Some guard clause prevents it. I see no good reason, it works without
the condition and greatly improve the use case described above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants